<template>
  <div class="message-wrap" >
    <div class="title" >{{ title }}</div>
    <div class="content" v-html="content" >

    </div>
  </div>
</template>

<script>
  import { MSG_DATA } from '@/api/cms';
  export default {
    data() {
      return {
        title: '',
        content: ''
      }
    },
    onLoad() {

      this.getMsg()
    },
    methods: {
      getMsg() {
        this.$http.get(MSG_DATA)
          .then(res => {

            this.title = res.data.title;
            this.content = res.data.content;
          })

      }


    }
  }
</script>

<style lang="less" >
  .message-wrap{
    padding: 20rpx 30rpx;
    .title{
      font-size: 36rpx;
      text-align: center;
    }

  }
</style>
